/*
 * @Author: wuqingchun
 * @Date: 2023-08-16 14:19:52
 * @Description: 
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-01-10 14:06:33
 */
#ifndef __FTPC_TCP_H__
#define __FTPC_TCP_H__

#include <netinet/in.h>

#include "ftpc_buf.h"


int FTPC_tcp_Connect(const char *pcHostName, unsigned short usPort);

// 非阻塞模式读
ssize_t FTPC_tcp_RecvNoblock(int iSockFd, void* pBuf, size_t ulBufSize);
// 阻塞模式读
int FTPC_tcp_Recv(int iSockFd, FTPC_BUF_HEAD_S* pstBufHead);
ssize_t FTPC_tcp_Send(int iSockFd, void* pData, size_t ulDataLen);
int FTPC_tcp_Listen(struct sockaddr_in* pstAddr);

#endif //__FTPC_TCP_H__